//
//  StarInfoModel.m
//  Mango
//
//  Created by lanou3g on 16/5/14.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "StarInfoModel.h"

@implementation StarInfoModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"description"]) {
        self.Description = value;
    }
}
- (NSInteger)height {
    NSDictionary *dict = @{NSFontAttributeName : [UIFont systemFontOfSize:13]};
    CGSize size = CGSizeMake(ScreenSizeW - 16, MAXFLOAT);
    CGFloat height = [self.Description boundingRectWithSize:size options:(NSStringDrawingUsesLineFragmentOrigin) attributes:dict context:nil].size.height;
    return 500 + height + 10;
}
@end
